/*
 * @Author: dyt
 * @Date: 2018-07-04 09:56:49
 * @Last Modified by: simpledyt
 * @Last Modified time: 2018-10-25 14:36:56
 */
import Vue from 'vue'
import Vuex from 'vuex'
import mutations from '@/store/mutations'
import actions from '@/store/action'
import getters from '@/store/getters'
import tagsView from '@/store/modules/tagsView'

Vue.use(Vuex)

const state = {
  menu: null, // 当前菜单
  curFresh: '',
  me: {
    user: {
      province: '',
      city: '',
      district: '',
      userAccount: ''
    },
    menus: [],
    cooperation: {},
    collectList: []
  },
  curTitle: {
    title: '用户中心'
  },
  noBackRoute: ['/dashboard/index'],
  toggleBar: false
}

export default new Vuex.Store({
  modules: {
    tagsView
  },
  state,
  getters,
  actions,
  mutations
})
